﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using __Able.Network;
using __Able.Network.Utils;
using CCU.Packet;
using __Able.Network.Manager;
using __Able.Network.Connection;

namespace CCU.Main
{
    class Program
    {
        static void Main(string[] args)
        {
            User user = new User();
            // 装包
            KeepAlivePacket pk = new KeepAlivePacket(user, Guid.NewGuid().ToByteArray());
            pk.Print();

            Channel channel = new Channel();
            channel.ConnectionManager.EnsureConnection("12347", true);
            IConnection con = channel.ConnectionManager.GetConnection("12347");
            con.Send(pk, false);

            Console.ReadKey();
        }
    }
}
